<template>
  <i class="close" @click="handleClock"></i>
</template>

<script>
export default {
  name: 'index',

  methods: {
    handleClock: function (e) {
      this.$emit('click', e)
    }
  }
}
</script>

<style lang="less" scoped>

.close {
  position: relative;
  width: 35px;
  height: 35px;
  margin-left: -5px;

  &:before {
    content: '';
    transition: transform .3s;
    transform: rotate(45deg);
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: #fff;
    left: 50%;
    top: 50%;
    margin-top: -1px;
    margin-left: -9px;
  }
  &:after {
    content: '';
    transition: transform .3s;
    transform: rotate(45deg);
    position: absolute;
    height: 18px;
    width: 2px;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -1px;
    background-color: #fff;
  }
}

</style>